package com.zhupanlin.zhyl.hosp.repository;

import com.zhupanlin.zhyl.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/11/24 13:19
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {

    /**
     * 查询科室信息
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
